package joshua.web.facade;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

@Service("logicFacade")
public class LogicFacadeImpl extends LogicFacade {

	
	public boolean deleteThreadById(int threadId) {
		return getPersistenceFacade().deleteThreadById(threadId);
	}
	
	
	public boolean addThread(String userName, String detail) {
		Date updateDate = new Date();
		return getPersistenceFacade().addThread(userName, detail, updateDate);
	}
	
	
	public List<Map<String, Object>> getAllThread(){
		return getPersistenceFacade().getAllThread();
	}
}
